import 'package:flutter/material.dart';

/// @date 2020/07/20  17:43
/// @author 程志强
/// @des

class BuilderListViewRoute extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("ListView.builder"),
      ),
      body: ListView.builder(
          itemCount: 100,
          // 强制高度
          itemExtent: 50.0,
          itemBuilder: (context, index) {
            return ListTile(title: Text("$index"),);
          }),
    );
  }
}
